//
//  ZLAlertConfig.h
//  ZLAlert-OC
//
//  Created by 科大 on 2024/1/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/// 配置类
@interface ZLAlertItemConfig : NSObject
/// 字体
@property (nonatomic, strong) UIFont *font;
/// 颜色
@property (nonatomic, strong) UIColor *color;
/// 背景色
@property (nonatomic, strong) UIColor *backgroundColor;
/// 对齐
@property (nonatomic, assign) NSTextAlignment alignment;
/// 缩进
@property (nonatomic, assign) UIEdgeInsets insets;
/// 高度
@property (nonatomic, assign) CGFloat height;
/// 圆角
@property (nonatomic, assign) CGFloat cornerRadius;
/// 边线宽度
@property (nonatomic, assign) CGFloat borderWidth;
/// 边线颜色
@property (nonatomic, strong) UIColor *borderColor;

@end
/// 配置管理类
@interface ZLAlertConfig : NSObject
/// 单例
@property (class, nonatomic, readonly) ZLAlertConfig *shared;
/// 背景是否可穿透
@property (nonatomic, assign) BOOL backgroundEnable;
/// 标题默认配置
@property (nonatomic, strong) ZLAlertItemConfig *titleConfig;
/// 内容默认配置
@property (nonatomic, strong) ZLAlertItemConfig *contentConfig;
/// 确认按钮配置
@property (nonatomic, strong) ZLAlertItemConfig *submitButtonConfig;
/// 取消按钮配置
@property (nonatomic, strong) ZLAlertItemConfig *cancelButtonConfig;
/// 线默认配置
@property (nonatomic, strong) ZLAlertItemConfig *lineConfig;
/// 输入框默认配置
@property (nonatomic, strong) ZLAlertItemConfig *inputConfig;
/// 图片默认配置
@property (nonatomic, strong) ZLAlertItemConfig *imageConfig;
@end

NS_ASSUME_NONNULL_END
